import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { shareStorePlugin } from '@/stores/plugins/sharePiniaStore'
// 导入 FontAwesome 4 的 CSS
import 'font-awesome/css/font-awesome.css';
// 截屏
import screenShot from '@/utils/ScreenShotUtils'

//import Antd from 'ant-design-vue'
// import { devtools } from '@vue/devtools'
import App from './App.vue'
import router from './router'

const app = createApp(App)
const pinia = createPinia()
pinia.use(shareStorePlugin) // 添加pinia插件
app.use(pinia)
// 截屏
app.provide('screenShot', screenShot)
// if (process.env.NODE_ENV === 'development') {
//   devtools.connect('http://localhost', 5173) // 使用默认端口 8098
// }
app.use(router)

app.mount('#app')
